package com.itehima.Buffer;

import java.io.*;

public class Demo02 {
    public static void main(String[] args) throws IOException {
        //关于字符缓冲流

        BufferedReader br = new BufferedReader(new FileReader("c.txt"));
        BufferedWriter bw = new BufferedWriter(new FileWriter("bbb.txt"));

        //readline在读取的时候，一次读一整行，遇到回车换行结束，不会将换行回车读进内存
//        String line;
//        while ((line=br.readLine())!=null)
//        {
//            System.out.println(line);
//        }

        bw.write(97);
        bw.newLine();
        bw.write(98);
        br.close();
        bw.close();
    }
}
